import numpy as np
import matplotlib.pyplot as plt
import sys

filename = sys.argv[1]

with open(filename,"r") as f:
	X = np.array(eval(f.readline()))
	F = np.array(eval(f.readline()))
	plt.plot(X,F, linewidth=2.5, linestyle="-")
	while True:
		F = f.readline()
		if len(F) == 0:
			break
		F = np.array(eval(F))
		plt.plot(X,F, linewidth=1, linestyle="-")
f.close()

plt.savefig("../png/"+filename[:-4]+".png")